home *** CD-ROM | disk | FTP | other *** search
/ Freelog 125 / Freelog_MarsAvril2015_No125.iso / Musique / Quod Libet / quodlibet-3.3.0-installer.exe / bin / opcode.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2014-12-31  |  6KB  |  189 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.7)
  3.  
  4. '''
  5. opcode module - potentially shared between dis and other modules which
  6. operate on bytecodes (e.g. peephole optimizers).
  7. '''
  8. __all__ = [
  9.     'cmp_op',
  10.     'hasconst',
  11.     'hasname',
  12.     'hasjrel',
  13.     'hasjabs',
  14.     'haslocal',
  15.     'hascompare',
  16.     'hasfree',
  17.     'opname',
  18.     'opmap',
  19.     'HAVE_ARGUMENT',
  20.     'EXTENDED_ARG']
  21. cmp_op = ('<', '<=', '==', '!=', '>', '>=', 'in', 'not in', 'is', 'is not', 'exception match', 'BAD')
  22. hasconst = []
  23. hasname = []
  24. hasjrel = []
  25. hasjabs = []
  26. haslocal = []
  27. hascompare = []
  28. hasfree = []
  29. opmap = { }
  30. opname = [
  31.     ''] * 256
  32. for op in range(256):
  33.     opname[op] = '<%r>' % (op,)
  34.  
  35. del op
  36.  
  37. def def_op(name, op):
  38.     opname[op] = name
  39.     opmap[name] = op
  40.  
  41.  
  42. def name_op(name, op):
  43.     def_op(name, op)
  44.     hasname.append(op)
  45.  
  46.  
  47. def jrel_op(name, op):
  48.     def_op(name, op)
  49.     hasjrel.append(op)
  50.  
  51.  
  52. def jabs_op(name, op):
  53.     def_op(name, op)
  54.     hasjabs.append(op)
  55.  
  56. def_op('STOP_CODE', 0)
  57. def_op('POP_TOP', 1)
  58. def_op('ROT_TWO', 2)
  59. def_op('ROT_THREE', 3)
  60. def_op('DUP_TOP', 4)
  61. def_op('ROT_FOUR', 5)
  62. def_op('NOP', 9)
  63. def_op('UNARY_POSITIVE', 10)
  64. def_op('UNARY_NEGATIVE', 11)
  65. def_op('UNARY_NOT', 12)
  66. def_op('UNARY_CONVERT', 13)
  67. def_op('UNARY_INVERT', 15)
  68. def_op('BINARY_POWER', 19)
  69. def_op('BINARY_MULTIPLY', 20)
  70. def_op('BINARY_DIVIDE', 21)
  71. def_op('BINARY_MODULO', 22)
  72. def_op('BINARY_ADD', 23)
  73. def_op('BINARY_SUBTRACT', 24)
  74. def_op('BINARY_SUBSCR', 25)
  75. def_op('BINARY_FLOOR_DIVIDE', 26)
  76. def_op('BINARY_TRUE_DIVIDE', 27)
  77. def_op('INPLACE_FLOOR_DIVIDE', 28)
  78. def_op('INPLACE_TRUE_DIVIDE', 29)
  79. def_op('SLICE+0', 30)
  80. def_op('SLICE+1', 31)
  81. def_op('SLICE+2', 32)
  82. def_op('SLICE+3', 33)
  83. def_op('STORE_SLICE+0', 40)
  84. def_op('STORE_SLICE+1', 41)
  85. def_op('STORE_SLICE+2', 42)
  86. def_op('STORE_SLICE+3', 43)
  87. def_op('DELETE_SLICE+0', 50)
  88. def_op('DELETE_SLICE+1', 51)
  89. def_op('DELETE_SLICE+2', 52)
  90. def_op('DELETE_SLICE+3', 53)
  91. def_op('STORE_MAP', 54)
  92. def_op('INPLACE_ADD', 55)
  93. def_op('INPLACE_SUBTRACT', 56)
  94. def_op('INPLACE_MULTIPLY', 57)
  95. def_op('INPLACE_DIVIDE', 58)
  96. def_op('INPLACE_MODULO', 59)
  97. def_op('STORE_SUBSCR', 60)
  98. def_op('DELETE_SUBSCR', 61)
  99. def_op('BINARY_LSHIFT', 62)
  100. def_op('BINARY_RSHIFT', 63)
  101. def_op('BINARY_AND', 64)
  102. def_op('BINARY_XOR', 65)
  103. def_op('BINARY_OR', 66)
  104. def_op('INPLACE_POWER', 67)
  105. def_op('GET_ITER', 68)
  106. def_op('PRINT_EXPR', 70)
  107. def_op('PRINT_ITEM', 71)
  108. def_op('PRINT_NEWLINE', 72)
  109. def_op('PRINT_ITEM_TO', 73)
  110. def_op('PRINT_NEWLINE_TO', 74)
  111. def_op('INPLACE_LSHIFT', 75)
  112. def_op('INPLACE_RSHIFT', 76)
  113. def_op('INPLACE_AND', 77)
  114. def_op('INPLACE_XOR', 78)
  115. def_op('INPLACE_OR', 79)
  116. def_op('BREAK_LOOP', 80)
  117. def_op('WITH_CLEANUP', 81)
  118. def_op('LOAD_LOCALS', 82)
  119. def_op('RETURN_VALUE', 83)
  120. def_op('IMPORT_STAR', 84)
  121. def_op('EXEC_STMT', 85)
  122. def_op('YIELD_VALUE', 86)
  123. def_op('POP_BLOCK', 87)
  124. def_op('END_FINALLY', 88)
  125. def_op('BUILD_CLASS', 89)
  126. HAVE_ARGUMENT = 90
  127. name_op('STORE_NAME', 90)
  128. name_op('DELETE_NAME', 91)
  129. def_op('UNPACK_SEQUENCE', 92)
  130. jrel_op('FOR_ITER', 93)
  131. def_op('LIST_APPEND', 94)
  132. name_op('STORE_ATTR', 95)
  133. name_op('DELETE_ATTR', 96)
  134. name_op('STORE_GLOBAL', 97)
  135. name_op('DELETE_GLOBAL', 98)
  136. def_op('DUP_TOPX', 99)
  137. def_op('LOAD_CONST', 100)
  138. hasconst.append(100)
  139. name_op('LOAD_NAME', 101)
  140. def_op('BUILD_TUPLE', 102)
  141. def_op('BUILD_LIST', 103)
  142. def_op('BUILD_SET', 104)
  143. def_op('BUILD_MAP', 105)
  144. name_op('LOAD_ATTR', 106)
  145. def_op('COMPARE_OP', 107)
  146. hascompare.append(107)
  147. name_op('IMPORT_NAME', 108)
  148. name_op('IMPORT_FROM', 109)
  149. jrel_op('JUMP_FORWARD', 110)
  150. jabs_op('JUMP_IF_FALSE_OR_POP', 111)
  151. jabs_op('JUMP_IF_TRUE_OR_POP', 112)
  152. jabs_op('JUMP_ABSOLUTE', 113)
  153. jabs_op('POP_JUMP_IF_FALSE', 114)
  154. jabs_op('POP_JUMP_IF_TRUE', 115)
  155. name_op('LOAD_GLOBAL', 116)
  156. jabs_op('CONTINUE_LOOP', 119)
  157. jrel_op('SETUP_LOOP', 120)
  158. jrel_op('SETUP_EXCEPT', 121)
  159. jrel_op('SETUP_FINALLY', 122)
  160. def_op('LOAD_FAST', 124)
  161. haslocal.append(124)
  162. def_op('STORE_FAST', 125)
  163. haslocal.append(125)
  164. def_op('DELETE_FAST', 126)
  165. haslocal.append(126)
  166. def_op('RAISE_VARARGS', 130)
  167. def_op('CALL_FUNCTION', 131)
  168. def_op('MAKE_FUNCTION', 132)
  169. def_op('BUILD_SLICE', 133)
  170. def_op('MAKE_CLOSURE', 134)
  171. def_op('LOAD_CLOSURE', 135)
  172. hasfree.append(135)
  173. def_op('LOAD_DEREF', 136)
  174. hasfree.append(136)
  175. def_op('STORE_DEREF', 137)
  176. hasfree.append(137)
  177. def_op('CALL_FUNCTION_VAR', 140)
  178. def_op('CALL_FUNCTION_KW', 141)
  179. def_op('CALL_FUNCTION_VAR_KW', 142)
  180. jrel_op('SETUP_WITH', 143)
  181. def_op('EXTENDED_ARG', 145)
  182. EXTENDED_ARG = 145
  183. def_op('SET_ADD', 146)
  184. def_op('MAP_ADD', 147)
  185. del def_op
  186. del name_op
  187. del jrel_op
  188. del jabs_op
  189.